package com.myh.cc.coom.singer.view

import android.support.v7.widget.LinearLayoutManager
import android.widget.LinearLayout
import com.myh.cc.R
import com.myh.cc.base.BaseFragment
import com.myh.cc.coom.singer.net.SingerNetControl
import com.myh.cc.coom.singer.viewmodel.SingerModel
import com.myh.cc.databinding.FragmentSingerBinding

/**
 * des    ：
 * create    ：  mayahao.
 * date   ：  2018/1/14.   ：
 */
class SingerFragment: BaseFragment<FragmentSingerBinding,SingerNetControl,SingerModel>() {


    override fun getLayoutId(): Int {
        return R.layout.fragment_singer

    }

    override fun initView() {
        val horiz = LinearLayoutManager(context)
        val horiz2 = LinearLayoutManager(context)
        // 设置水平 滑动
        horiz.orientation = LinearLayoutManager.HORIZONTAL
        horiz2.orientation = LinearLayoutManager.HORIZONTAL

        mBinder.singerRvList.layoutManager = LinearLayoutManager(context,LinearLayout.VERTICAL,false)
        mBinder.singerRvType.layoutManager = LinearLayoutManager(context,LinearLayout.HORIZONTAL,false)
        mBinder.singerRvAbc.layoutManager  = LinearLayoutManager(context,LinearLayout.HORIZONTAL,false)

        mModel.initRecycleViewType()

        mModel.getSinger("","")
    }


}